import requests


class IhrmLoginApi(object):
    def ihrm_login(self,req_data):
        resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                             json=req_data)
        return resp


if __name__ == '__main__':
    ihrm = IhrmLoginApi()
    req_data = {"mobile":"13800000002","password":"123456"}
    ret = ihrm.ihrm_login(req_data)
    print(ret.json())
